<?php

include_once("{$_SERVER['DOCUMENT_ROOT']}/header.php");
$fileResult = $r->select("file", "where uid ='$data1' order by uid desc", "o_filename");
while ($file = $fileResult->fetch_object()) {
    @unlink(PHP_ROOT."/data/o_file/$file->o_filename"); //원본제거
    @unlink(PHP_ROOT."/data/s_file/s_$file->o_filename"); //섬네일제거
}
$r->delete("file", "where uid ='$data1'");
echo"삭제했습니다  ";
$r->db->close();
